Skip to content

Adding new data sources to cloudstack-terraform-proivder#38

Merged
yadvr merged 39 commits into
apache:mainfrom
Damans227:AddNewDataSources
Apr 25, 2023
Merged

Adding new data sources to cloudstack-terraform-proivder#38
yadvr merged 39 commits into
apache:mainfrom
Damans227:AddNewDataSources

Conversation

@Damans227

@Damans227 Damans227 commented Jun 14, 2022

Copy link
Copy Markdown
Contributor

Hi @Pearl1594 and @harikrishna-patnala This PR is a continuation of PR: #34. In order to keep everything organized, I renamed the AddInstanceDataSource branch to AddNewDataSources. Hence, this new PR is needed. I will close the old PR and continue adding additional data sources to this one.

Issue: apache/cloudstack#6016

},
})
}

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

 ❯ TF_ACC=1 go test -run TestAccSshKeyPairDataSource_basic -v
=== RUN   TestAccSshKeyPairDataSource_basic
--- PASS: TestAccSshKeyPairDataSource_basic (0.21s)
PASS
ok      github.com/terraform-providers/terraform-provider-cloudstack/cloudstack 0.217s

},
})
}

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.


 ❯ TF_ACC=1 go test -run TestAccNetworkOfferingDataSource_basic -v
=== RUN   TestAccNetworkOfferingDataSource_basic
--- PASS: TestAccNetworkOfferingDataSource_basic (0.26s)
PASS
ok    

},
})
}

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

❯ TF_ACC=1 go test -run TestAccZoneDataSource_basic -v
=== RUN   TestAccZoneDataSource_basic
--- PASS: TestAccZoneDataSource_basic (0.29s)
PASS
ok      github.com/terraform-providers/terraform-provider-cloudstack/cloudstack 0.302s

},
})
}

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

❯ TF_ACC=1 go test -run TestAccNetworkOfferingDataSource_basic -v
=== RUN   TestAccNetworkOfferingDataSource_basic
--- PASS: TestAccNetworkOfferingDataSource_basic (0.27s)
PASS
ok      github.com/terraform-providers/terraform-provider-cloudstack/cloudstack 0.273s

},
})
}

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

 ❯ TF_ACC=1 go test -run TestAccVPCDataSource_basic -v
=== RUN   TestAccVPCDataSource_basic
--- PASS: TestAccVPCDataSource_basic (31.61s)
PASS
ok      github.com/terraform-providers/terraform-provider-cloudstack/cloudstack 31.617s

},
})
}

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

 ❯ TF_ACC=1 go test -run TestAccIPAddressDataSource_basic -v    
=== RUN   TestAccIPAddressDataSource_basic
--- PASS: TestAccIPAddressDataSource_basic (2.38s)
PASS
ok      github.com/terraform-providers/terraform-provider-cloudstack/cloudstack 2.390s

},
})
}

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

 ❯ TF_ACC=1 go test -run TestAccUserDataSource_basic -v    
=== RUN   TestAccUserDataSource_basic
--- PASS: TestAccUserDataSource_basic (0.34s)
PASS
ok      github.com/terraform-providers/terraform-provider-cloudstack/cloudstack 0.349s

@yadvr

yadvr commented Sep 8, 2022

Copy link
Copy Markdown
Member

Hi @Damans227 can you advise if this is ready for review and testing or you're still working on it?

@Damans227

Copy link
Copy Markdown
Contributor Author

Hi @Damans227 can you advise if this is ready for review and testing or you're still working on it?

Hello @rohityadavcloud, this PR is ready to be reviewed and tested as per the timeline agreed upon in my GSoC proposal.

I am actually ahead of schedule because after the final evaluation, I am supposed to request an extension to add new resources and corresponding data sources, which I have already begun.

Looping in @Pearl1594 and @harikrishna-patnala. Lemme know what do you think.

@Damans227

Copy link
Copy Markdown
Contributor Author

Hi @Damans227 can you advise if this is ready for review and testing or you're still working on it?

Hello @rohityadavcloud, this PR is ready to be reviewed and tested as per the timeline agreed upon in my GSoC proposal.

I am actually ahead of schedule because after the final evaluation, I am supposed to request an extension to add new resources and corresponding data sources, which I have already begun.

Looping in @Pearl1594 and @harikrishna-patnala. Lemme know what do you think.

I believe it would be best to finalize this PR and then work on the extended scope of the project in a separate PR after final evaluation. Let me know what you think.

@yadvr

yadvr commented Sep 11, 2022

Copy link
Copy Markdown
Member

Thanks for the update @Damans227

@kiranchavala kiranchavala left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM , tested all the data sources manually and its working fine

@yadvr yadvr merged commit f0b83ca into apache:main Apr 25, 2023
@Damans227

Copy link
Copy Markdown
Contributor Author

Thanks for the review and merge, @kiranchavala @rohityadavcloud

@harikrishna-patnala harikrishna-patnala added this to the v0.5.0 milestone Aug 7, 2023
poddm pushed a commit to poddm/cloudstack-terraform-provider that referenced this pull request Oct 31, 2023
* create ssh keypair data-source

* create a method stub for instance data-source

* extending instance data-source to use its id as an input

* use SetId() to define the ID of the instance resource

* implement filters to allow filtering off of any exported attributes

* add ip-address to schema and allow filtering off of it

* create a method stub to acceptance test the instance data-source

* basic acceptance test for instance data-source passing

* adding comments to improve the readability of code

* add basic acceptance test for ssh keypair data-source

* create network offering resource

* complete network offering resource type

* create network offering data source

* add basic acceptance test for network offering data source

* create disk offering resource

* implement create method for disk offering resource

* create cloudstack volume resource type

* create cloudstack zone resource type

* create zone data source

* add acceptance test for zone datasource

* create service offering resource

* create service offering data source

* add service offering data source

* fix typos in comments for network offering resource

* add volume data source

* add acceptance test for volume data source

* create account resource

* implement delete method in account resource

* fix a typo in network offering

* create user resource

* create domain resource

* add vpc data-source

* add ip address data-source

* add user data-source

* add vpn connection data-source

* add acceptance test for vpc data-source

* add acceptance test for ipaddress data-source

* add acceptance test for user data-source

* fix a typo in applyNetworkOfferingFilters method of network offering data-source
@CodeBleu CodeBleu mentioned this pull request Feb 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants